package obj_.Claendar;

import java.util.Calendar;

public class demo01 {
    public static void main(String[] args) {
        //多态，
        Calendar cal = Calendar.getInstance();
        System.out.println(cal);
        method02();

    }

    private static void method02() {
        Calendar cal = Calendar.getInstance();
    }

    private static void method01() {
        Calendar instance = Calendar.getInstance();
        int i = instance.get(Calendar.YEAR);
        System.out.println(i);
        System.out.println(instance.get(Calendar.MONTH));
    }

}
